package com.xdclass.thread.demo;

/**
 * @Author: Timo
 * @Date: 2019/4/25 16:31
 * @Description: 练习创建线程，实现Runnable接口
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("[" + Thread.currentThread().getName() + "] runing .....");
    }


    public static void main(String[] args) {
        Thread thread = new Thread(new MyThread());
        thread.setName("MyRunnable");
        thread.start();
    }


    /**
     * @param p1
     * @param p2
     * @param p3
     * @return java.lang.String
     * @Author: timo
     * @Date: 2019/4/26 09:26
     * @Description: 描述
     */

    public String test(String p1, String p2, String p3) {
        return "fsadf";
    }
}
